<?php

namespace app\common\services;

use api\energy\Energy;

class EnergyService
{

    /**
     * 初始化
     * @param int $itemsId 企业ID
     * @return Energy
     */
    public static function init(int $itemsId = 1)
    {
        $config = web_config($itemsId, 'program.energy');
        return (new Energy($config));
    }
}